package main

import (
	"database/sql"
	"fmt"

	_ "github.com/go-sql-driver/mysql"
)

var db *sql.DB

func GetDBConn() *sql.DB {
	dbName := "go_ms_test"
	fmt.Println("conn info:", dbName)
	db, err := sql.Open("mysql", "go_ms_user:xxxxx@tcp(192.168.167.2:13306)/go_ms_test")
	if err != nil {
		panic(err.Error())
	}
	return db
}
